#!/bin/bash

export CC="gcc-mp-4.7"
export CXX="g++-mp-4.7"
export CPP="gcc-mp-4.7 -E"
export CXXCPP="g++-mp-4.7 -E"
export CFLAGS="-O3 -arch x86_64 -m64 -fno-common -fomit-frame-pointer -fstrict-aliasing"
export CXXFLAGS="$CFLAGS"

./configure
    --prefix=/usr/local \
    --disable-fortran \
    --enable-float \
    --enable-long-double \
    --enable-openmp \
    --enable-shared \
    --enable-single \
    --enable-sse \
    --enable-sse2 \
    --enable-static \
    --enable-threads

gmake clean
gmake -j2
gmake install
gmake distclean

echo done
